%Succeed to open USB2Dynamixel!
data=struct();
% Reglage:
data.description_experience="Mesure du couple lors de la levé d'un poid de 1Kg";
data.values=zeros(10000,6);% Indices des colonnes de données
data.col_time=1;
data.col_position=2;
data.col_vitesse=3;
data.col_current=4;
data.col_load=5;
data.col_consigne=6;
i=0;

%Duree_us: 2500000
%Press Enter key to continue!(press ESC and Enter to quit)

%Parametre : speedRpm < 6.000000%PresentTimeUs,PresentPosDegree,PresentSpeedRadps,PresentCurrentInc,PresentLoadNm,Goalposdegree
i=i+1;data.values(i,:)=[1,1728,0,2049,1064,237.956039];
i=i+1;data.values(i,:)=[8575,1728,0,2052,1096,237.956039];
i=i+1;data.values(i,:)=[16510,1728,0,2057,1120,237.956039];
i=i+1;data.values(i,:)=[24505,1729,0,2059,1125,237.956039];
i=i+1;data.values(i,:)=[33498,1731,16,2062,1115,237.956039];
i=i+1;data.values(i,:)=[43510,1735,32,2062,1100,237.956039];
i=i+1;data.values(i,:)=[52504,1739,44,2059,1074,237.956039];
i=i+1;data.values(i,:)=[60508,1743,52,2059,1069,237.956039];
i=i+1;data.values(i,:)=[68491,1746,56,2060,1063,237.956039];
i=i+1;data.values(i,:)=[76501,1751,52,2057,1049,237.956039];
i=i+1;data.values(i,:)=[84485,1755,56,2058,1049,237.956039];
i=i+1;data.values(i,:)=[92482,1758,56,2057,1061,237.956039];
i=i+1;data.values(i,:)=[100556,1762,56,2058,1055,237.956039];
i=i+1;data.values(i,:)=[108523,1766,52,2056,1061,237.956039];
i=i+1;data.values(i,:)=[116481,1769,52,2058,1055,237.956039];
i=i+1;data.values(i,:)=[124634,1773,52,2058,1074,237.956039];
i=i+1;data.values(i,:)=[133486,1777,52,2058,1074,237.956039];
i=i+1;data.values(i,:)=[141487,1779,48,2057,1061,237.956039];
i=i+1;data.values(i,:)=[149494,1784,48,2058,1061,237.956039];
i=i+1;data.values(i,:)=[158481,1787,52,2059,1069,237.956039];
i=i+1;data.values(i,:)=[166497,1792,52,2057,1055,237.956039];
i=i+1;data.values(i,:)=[174500,1795,52,2058,1061,237.956039];
i=i+1;data.values(i,:)=[185489,1800,52,2057,1061,237.956039];
i=i+1;data.values(i,:)=[195701,1804,52,2057,1061,237.956039];
i=i+1;data.values(i,:)=[203484,1808,52,2060,1061,237.956039];
i=i+1;data.values(i,:)=[211487,1811,52,2057,1069,237.956039];
i=i+1;data.values(i,:)=[219485,1815,48,2058,1061,237.956039];
i=i+1;data.values(i,:)=[227503,1818,48,2057,1061,237.956039];
i=i+1;data.values(i,:)=[235486,1821,52,2057,1061,237.956039];
i=i+1;data.values(i,:)=[247493,1828,56,2058,1055,237.956039];
i=i+1;data.values(i,:)=[256498,1831,56,2058,1061,237.956039];
i=i+1;data.values(i,:)=[264505,1835,52,2057,1055,237.956039];
i=i+1;data.values(i,:)=[272489,1839,52,2059,1061,237.956039];
i=i+1;data.values(i,:)=[280586,1842,48,2057,1074,237.956039];
i=i+1;data.values(i,:)=[288491,1846,52,2057,1061,237.956039];
i=i+1;data.values(i,:)=[297494,1849,52,2057,1061,237.956039];
i=i+1;data.values(i,:)=[306489,1854,52,2058,1055,237.956039];
i=i+1;data.values(i,:)=[315485,1859,52,2059,1061,237.956039];
i=i+1;data.values(i,:)=[323489,1862,52,2057,1069,237.956039];
i=i+1;data.values(i,:)=[331482,1866,48,2057,1074,237.956039];
i=i+1;data.values(i,:)=[339505,1869,48,2060,1061,237.956039];
i=i+1;data.values(i,:)=[347483,1873,52,2057,1061,237.956039];
i=i+1;data.values(i,:)=[355489,1877,56,2060,1069,237.956039];
i=i+1;data.values(i,:)=[363497,1880,52,2057,1061,237.956039];
i=i+1;data.values(i,:)=[371495,1884,52,2060,1055,237.956039];
i=i+1;data.values(i,:)=[379496,1887,52,2057,1061,237.956039];
i=i+1;data.values(i,:)=[387913,1891,52,2057,1061,237.956039];
i=i+1;data.values(i,:)=[396490,1895,52,2057,1061,237.956039];
i=i+1;data.values(i,:)=[404483,1899,56,2058,1069,237.956039];
i=i+1;data.values(i,:)=[413500,1903,52,2060,1061,237.956039];
i=i+1;data.values(i,:)=[421484,1906,52,2060,1061,237.956039];
i=i+1;data.values(i,:)=[430485,1910,48,2058,1061,237.956039];
i=i+1;data.values(i,:)=[438493,1914,52,2059,1074,237.956039];
i=i+1;data.values(i,:)=[446688,1918,56,2058,1061,237.956039];
i=i+1;data.values(i,:)=[454488,1921,56,2057,1061,237.956039];
i=i+1;data.values(i,:)=[463501,1925,56,2058,1069,237.956039];
i=i+1;data.values(i,:)=[471483,1928,52,2058,1074,237.956039];
i=i+1;data.values(i,:)=[480476,1932,48,2059,1061,237.956039];
i=i+1;data.values(i,:)=[488488,1936,52,2057,1061,237.956039];
i=i+1;data.values(i,:)=[497488,1940,52,2059,1061,237.956039];
i=i+1;data.values(i,:)=[505484,1943,52,2057,1055,237.956039];
i=i+1;data.values(i,:)=[514479,1947,52,2060,1055,237.956039];
i=i+1;data.values(i,:)=[523503,1952,52,2059,1074,237.956039];
i=i+1;data.values(i,:)=[531500,1955,52,2058,1061,237.956039];
i=i+1;data.values(i,:)=[539484,1959,52,2058,1061,237.956039];
i=i+1;data.values(i,:)=[548488,1963,52,2060,1074,237.956039];
i=i+1;data.values(i,:)=[556484,1966,52,2057,1069,237.956039];
i=i+1;data.values(i,:)=[565478,1971,52,2058,1069,237.956039];
i=i+1;data.values(i,:)=[574501,1974,52,2057,1069,237.956039];
i=i+1;data.values(i,:)=[582500,1978,52,2059,1061,237.956039];
i=i+1;data.values(i,:)=[590485,1982,48,2057,1061,237.956039];
i=i+1;data.values(i,:)=[599486,1986,56,2057,1055,237.956039];
i=i+1;data.values(i,:)=[608486,1989,48,2057,1055,237.956039];
i=i+1;data.values(i,:)=[616493,1993,52,2057,1061,237.956039];
i=i+1;data.values(i,:)=[624484,1996,52,2057,1061,237.956039];
i=i+1;data.values(i,:)=[633483,2001,48,2058,1069,237.956039];
i=i+1;data.values(i,:)=[641481,2005,56,2059,1069,237.956039];
i=i+1;data.values(i,:)=[650489,2008,52,2058,1061,237.956039];
i=i+1;data.values(i,:)=[658501,2012,52,2057,1061,237.956039];
i=i+1;data.values(i,:)=[666482,2015,52,2058,1061,237.956039];
i=i+1;data.values(i,:)=[675479,2020,52,2060,1069,237.956039];
i=i+1;data.values(i,:)=[684485,2023,52,2057,1061,237.956039];
i=i+1;data.values(i,:)=[692488,2027,48,2059,1074,237.956039];
i=i+1;data.values(i,:)=[700486,2031,52,2058,1074,237.956039];
i=i+1;data.values(i,:)=[709481,2034,52,2059,1061,237.956039];
i=i+1;data.values(i,:)=[718488,2039,52,2059,1069,237.956039];
i=i+1;data.values(i,:)=[726481,2042,52,2059,1061,237.956039];
i=i+1;data.values(i,:)=[735486,2046,52,2057,1055,237.956039];
i=i+1;data.values(i,:)=[743485,2050,56,2059,1069,237.956039];
i=i+1;data.values(i,:)=[751487,2054,52,2059,1055,237.956039];
i=i+1;data.values(i,:)=[760480,2058,56,2057,1061,237.956039];
i=i+1;data.values(i,:)=[769481,2061,52,2058,1069,237.956039];
i=i+1;data.values(i,:)=[778479,2065,52,2059,1069,237.956039];
i=i+1;data.values(i,:)=[787900,2070,48,2057,1074,237.956039];
i=i+1;data.values(i,:)=[796489,2073,56,2059,1074,237.956039];
i=i+1;data.values(i,:)=[805485,2077,52,2058,1061,237.956039];
i=i+1;data.values(i,:)=[813489,2081,52,2058,1061,237.956039];
i=i+1;data.values(i,:)=[821491,2084,48,2060,1069,237.956039];
i=i+1;data.values(i,:)=[829486,2088,52,2057,1061,237.956039];
i=i+1;data.values(i,:)=[837482,2092,52,2058,1061,237.956039];
i=i+1;data.values(i,:)=[846479,2095,48,2060,1061,237.956039];
i=i+1;data.values(i,:)=[854494,2100,52,2057,1061,237.956039];
i=i+1;data.values(i,:)=[862501,2103,52,2058,1061,237.956039];
i=i+1;data.values(i,:)=[870501,2107,52,2055,1069,237.956039];
i=i+1;data.values(i,:)=[878480,2110,52,2060,1061,237.956039];
i=i+1;data.values(i,:)=[887480,2113,52,2059,1061,237.956039];
i=i+1;data.values(i,:)=[896481,2118,52,2055,1061,237.956039];
i=i+1;data.values(i,:)=[905485,2123,52,2056,1055,237.956039];
i=i+1;data.values(i,:)=[914480,2127,56,2058,1055,237.956039];
i=i+1;data.values(i,:)=[923502,2131,56,2058,1055,237.956039];
i=i+1;data.values(i,:)=[932499,2134,48,2060,1074,237.956039];
i=i+1;data.values(i,:)=[941486,2138,48,2058,1074,237.956039];
i=i+1;data.values(i,:)=[951482,2142,52,2057,1061,237.956039];
i=i+1;data.values(i,:)=[960502,2147,56,2058,1055,237.956039];
i=i+1;data.values(i,:)=[969501,2151,56,2058,1055,237.956039];
i=i+1;data.values(i,:)=[978500,2155,52,2058,1061,237.956039];
i=i+1;data.values(i,:)=[987697,2158,48,2059,1074,237.956039];
i=i+1;data.values(i,:)=[996481,2162,48,2058,1061,237.956039];
i=i+1;data.values(i,:)=[1005490,2167,52,2057,1061,237.956039];
i=i+1;data.values(i,:)=[1014499,2171,52,2057,1061,237.956039];
i=i+1;data.values(i,:)=[1023481,2175,56,2058,1061,237.956039];
i=i+1;data.values(i,:)=[1032478,2179,48,2057,1061,237.956039];
i=i+1;data.values(i,:)=[1043517,2183,52,2058,1061,237.956039];
i=i+1;data.values(i,:)=[1051487,2187,56,2057,1061,237.956039];
i=i+1;data.values(i,:)=[1060479,2191,56,2057,1055,237.956039];
i=i+1;data.values(i,:)=[1069478,2196,56,2060,1074,237.956039];
i=i+1;data.values(i,:)=[1079478,2199,48,2058,1074,237.956039];
i=i+1;data.values(i,:)=[1088479,2204,48,2059,1074,237.956039];
i=i+1;data.values(i,:)=[1096511,2208,52,2057,1061,237.956039];
i=i+1;data.values(i,:)=[1105487,2211,56,2057,1055,237.956039];
i=i+1;data.values(i,:)=[1114478,2216,56,2059,1055,237.956039];
i=i+1;data.values(i,:)=[1123480,2220,52,2058,1061,237.956039];
i=i+1;data.values(i,:)=[1133484,2224,52,2057,1074,237.956039];
i=i+1;data.values(i,:)=[1142488,2228,52,2057,1066,237.956039];
i=i+1;data.values(i,:)=[1152481,2232,52,2058,1074,237.956039];
i=i+1;data.values(i,:)=[1160486,2236,52,2058,1061,237.956039];
i=i+1;data.values(i,:)=[1170499,2240,52,2057,1061,237.956039];
i=i+1;data.values(i,:)=[1178479,2243,56,2057,1061,237.956039];
i=i+1;data.values(i,:)=[1187482,2247,52,2057,1061,237.956039];
i=i+1;data.values(i,:)=[1196487,2251,52,2057,1069,237.956039];
i=i+1;data.values(i,:)=[1205481,2255,52,2058,1061,237.956039];
i=i+1;data.values(i,:)=[1215480,2260,56,2057,1061,237.956039];
i=i+1;data.values(i,:)=[1224483,2263,52,2057,1055,237.956039];
i=i+1;data.values(i,:)=[1233486,2267,52,2057,1074,237.956039];
i=i+1;data.values(i,:)=[1242489,2272,48,2058,1061,237.956039];
i=i+1;data.values(i,:)=[1251484,2276,56,2058,1047,237.956039];
i=i+1;data.values(i,:)=[1261477,2281,52,2058,1047,237.956039];
i=i+1;data.values(i,:)=[1270499,2284,52,2058,1061,237.956039];
i=i+1;data.values(i,:)=[1278479,2288,52,2060,1061,237.956039];
i=i+1;data.values(i,:)=[1287899,2291,48,2057,1061,237.956039];
i=i+1;data.values(i,:)=[1296490,2296,52,2058,1061,237.956039];
i=i+1;data.values(i,:)=[1307481,2301,56,2058,1061,237.956039];
i=i+1;data.values(i,:)=[1316523,2305,52,2057,1061,237.956039];
i=i+1;data.values(i,:)=[1324484,2308,52,2060,1061,237.956039];
i=i+1;data.values(i,:)=[1333481,2312,52,2058,1066,237.956039];
i=i+1;data.values(i,:)=[1343489,2316,48,2059,1069,237.956039];
i=i+1;data.values(i,:)=[1352488,2321,52,2057,1069,237.956039];
i=i+1;data.values(i,:)=[1360482,2324,52,2057,1069,237.956039];
i=i+1;data.values(i,:)=[1369478,2329,56,2060,1069,237.956039];
i=i+1;data.values(i,:)=[1378480,2332,52,2058,1061,237.956039];
i=i+1;data.values(i,:)=[1388479,2337,52,2060,1061,237.956039];
i=i+1;data.values(i,:)=[1399478,2342,52,2057,1061,237.956039];
i=i+1;data.values(i,:)=[1408480,2345,52,2058,1061,237.956039];
i=i+1;data.values(i,:)=[1417485,2350,52,2057,1066,237.956039];
i=i+1;data.values(i,:)=[1427481,2354,48,2057,1061,237.956039];
i=i+1;data.values(i,:)=[1437486,2359,52,2056,1061,237.956039];
i=i+1;data.values(i,:)=[1447502,2363,52,2057,1047,237.956039];
i=i+1;data.values(i,:)=[1457486,2367,52,2060,1074,237.956039];
i=i+1;data.values(i,:)=[1465482,2370,52,2059,1061,237.956039];
i=i+1;data.values(i,:)=[1475500,2375,52,2058,1074,237.956039];
i=i+1;data.values(i,:)=[1485489,2379,52,2060,1074,237.956039];
i=i+1;data.values(i,:)=[1493528,2383,52,2057,1061,237.956039];
i=i+1;data.values(i,:)=[1502480,2386,52,2058,1061,237.956039];
i=i+1;data.values(i,:)=[1511500,2391,56,2060,1061,237.956039];
i=i+1;data.values(i,:)=[1522498,2396,52,2058,1061,237.956039];
i=i+1;data.values(i,:)=[1532480,2400,52,2058,1074,237.956039];
i=i+1;data.values(i,:)=[1541483,2404,48,2057,1061,237.956039];
i=i+1;data.values(i,:)=[1550492,2408,48,2058,1061,237.956039];
i=i+1;data.values(i,:)=[1560482,2413,52,2058,1061,237.956039];
i=i+1;data.values(i,:)=[1570479,2417,52,2057,1066,237.956039];
i=i+1;data.values(i,:)=[1580479,2422,48,2060,1074,237.956039];
i=i+1;data.values(i,:)=[1591480,2426,48,2059,1061,237.956039];
i=i+1;data.values(i,:)=[1600490,2430,52,2060,1061,237.956039];
i=i+1;data.values(i,:)=[1611499,2435,56,2058,1061,237.956039];
i=i+1;data.values(i,:)=[1622498,2439,52,2058,1055,237.956039];
i=i+1;data.values(i,:)=[1632503,2443,52,2057,1061,237.956039];
i=i+1;data.values(i,:)=[1641487,2447,52,2058,1074,237.956039];
i=i+1;data.values(i,:)=[1652480,2453,52,2058,1047,237.956039];
i=i+1;data.values(i,:)=[1663492,2457,52,2058,1061,237.956039];
i=i+1;data.values(i,:)=[1673482,2462,52,2057,1061,237.956039];
i=i+1;data.values(i,:)=[1682480,2466,48,2058,1066,237.956039];
i=i+1;data.values(i,:)=[1692484,2470,52,2057,1061,237.956039];
i=i+1;data.values(i,:)=[1702487,2475,56,2057,1069,237.956039];
i=i+1;data.values(i,:)=[1713506,2480,56,2059,1055,237.956039];
i=i+1;data.values(i,:)=[1725479,2485,52,2060,1061,237.956039];
i=i+1;data.values(i,:)=[1737480,2491,52,2058,1074,237.956039];
i=i+1;data.values(i,:)=[1749480,2496,52,2057,1061,237.956039];
i=i+1;data.values(i,:)=[1761501,2501,52,2058,1061,237.956039];
i=i+1;data.values(i,:)=[1773499,2507,52,2057,1061,237.956039];
i=i+1;data.values(i,:)=[1785487,2513,48,2058,1061,237.956039];
i=i+1;data.values(i,:)=[1797487,2517,56,2060,1061,237.956039];
i=i+1;data.values(i,:)=[1809481,2523,48,2058,1074,237.956039];
i=i+1;data.values(i,:)=[1821479,2528,48,2058,1061,237.956039];
i=i+1;data.values(i,:)=[1833526,2534,52,2057,1066,237.956039];
i=i+1;data.values(i,:)=[1845482,2538,52,2058,1069,237.956039];
i=i+1;data.values(i,:)=[1857498,2544,48,2058,1061,237.956039];
i=i+1;data.values(i,:)=[1869501,2550,52,2057,1069,237.956039];
i=i+1;data.values(i,:)=[1881500,2554,48,2058,1061,237.956039];
i=i+1;data.values(i,:)=[1893489,2560,56,2058,1061,237.956039];
i=i+1;data.values(i,:)=[1905480,2564,52,2059,1061,237.956039];
i=i+1;data.values(i,:)=[1917487,2570,52,2056,1055,237.956039];
i=i+1;data.values(i,:)=[1929479,2576,56,2060,1061,237.956039];
i=i+1;data.values(i,:)=[1941480,2580,52,2057,1074,237.956039];
i=i+1;data.values(i,:)=[1953480,2586,48,2058,1061,237.956039];
i=i+1;data.values(i,:)=[1965500,2591,52,2056,1061,237.956039];
i=i+1;data.values(i,:)=[1977501,2596,52,2057,1061,237.956039];
i=i+1;data.values(i,:)=[1989487,2602,52,2058,1069,237.956039];
i=i+1;data.values(i,:)=[2001486,2608,52,2059,1061,237.956039];
i=i+1;data.values(i,:)=[2013480,2612,52,2058,1061,237.956039];
i=i+1;data.values(i,:)=[2026479,2618,52,2057,1061,237.956039];
i=i+1;data.values(i,:)=[2038498,2624,52,2058,1074,237.956039];
i=i+1;data.values(i,:)=[2050484,2629,48,2059,1061,237.956039];
i=i+1;data.values(i,:)=[2062478,2634,52,2058,1061,237.956039];
i=i+1;data.values(i,:)=[2074478,2640,52,2057,1061,237.956039];
i=i+1;data.values(i,:)=[2086482,2645,52,2058,1061,237.956039];
i=i+1;data.values(i,:)=[2098499,2651,52,2057,1069,237.956039];
i=i+1;data.values(i,:)=[2110500,2656,56,2058,1074,237.956039];
i=i+1;data.values(i,:)=[2122499,2662,52,2059,1061,237.956039];
i=i+1;data.values(i,:)=[2134487,2667,52,2059,1074,237.956039];
i=i+1;data.values(i,:)=[2146501,2671,48,2058,1074,237.956039];
i=i+1;data.values(i,:)=[2158479,2677,52,2059,1061,237.956039];
i=i+1;data.values(i,:)=[2170500,2682,56,2057,1069,237.956039];
i=i+1;data.values(i,:)=[2182478,2688,52,2059,1074,237.956039];
i=i+1;data.values(i,:)=[2194642,2693,52,2051,1031,237.956039];
i=i+1;data.values(i,:)=[2206500,2699,48,2048,8,237.956039];
i=i+1;data.values(i,:)=[2218483,2702,44,2047,20,237.956039];
i=i+1;data.values(i,:)=[2230479,2703,28,2048,5,237.956039];
i=i+1;data.values(i,:)=[2242486,2704,8,2048,1037,237.956039];
i=i+1;data.values(i,:)=[2254478,2705,8,2048,1029,237.956039];
i=i+1;data.values(i,:)=[2266478,2704,0,2048,1048,237.956039];
i=i+1;data.values(i,:)=[2278486,2704,0,2048,1040,237.956039];
i=i+1;data.values(i,:)=[2290500,2704,0,2048,1048,237.956039];
i=i+1;data.values(i,:)=[2302508,2704,0,2048,1048,237.956039];
i=i+1;data.values(i,:)=[2314480,2704,0,2048,1048,237.956039];
i=i+1;data.values(i,:)=[2326483,2705,0,2048,1040,237.956039];
i=i+1;data.values(i,:)=[2338477,2705,0,2048,1040,237.956039];
i=i+1;data.values(i,:)=[2350487,2705,0,2048,1048,237.956039];
i=i+1;data.values(i,:)=[2362501,2704,0,2048,1048,237.956039];
i=i+1;data.values(i,:)=[2374478,2704,0,2048,1040,237.956039];
i=i+1;data.values(i,:)=[2386481,2704,0,2048,1048,237.956039];
i=i+1;data.values(i,:)=[2398500,2705,0,2048,1048,237.956039];
i=i+1;data.values(i,:)=[2410499,2705,0,2048,1048,237.956039];
i=i+1;data.values(i,:)=[2422478,2704,0,2048,1040,237.956039];
i=i+1;data.values(i,:)=[2434486,2705,0,2048,1040,237.956039];
i=i+1;data.values(i,:)=[2447488,2704,0,2048,1040,237.956039];
i=i+1;data.values(i,:)=[2459501,2704,0,2048,1040,237.956039];
i=i+1;data.values(i,:)=[2471479,2705,0,2048,1040,237.956039];
i=i+1;data.values(i,:)=[2482502,2705,0,2048,1048,237.956039];
i=i+1;data.values(i,:)=[2494484,2705,0,2048,1048,237.956039];
i=i+1;data.values(i,:)=[2506478,2704,0,2048,1040,237.956039];
data.values=data.values(1:i,:);
